Learning jQuery Deferreds by Terry Jones & Nicholas H. Tollervey

Learning jQuery Deferreds by Terry Jones & Nicholas H. Tollervey

Author:Terry Jones & Nicholas H. Tollervey
Language: eng
Format: epub
ISBN: 9781449369392
Publisher: O’Reilly Media, Inc.
Published: 2014-04-03T16:00:00+00:00


Challenges

What undesirable outcome could occur if the promise from internalCreate​Us⁠er were put into the promises object after the always callback is set up?

The problem in the previous challenge is an example that illustrates a general principle of maintaining data structures that hold deferreds and promises. Can you generalize our specific problem to arrive at the principle?

Think about the similarities and differences between the short-term in-progress function call memoization above and regular caching with result expiry after a fixed time.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.